hdc shell param set persist.ace.debug.enabled 1

hdc shell "hidumper -s WindowManagerService -a '-a'"
@set /p windowId=input WindowId :

for /F %%i in ('hdc shell "find data/ -name arkui.dump"') do (
	hdc shell "rm %%i"
)

hdc shell "hidumper -s WindowManagerService -a '-w %windowId% -event'"

for /F %%i in ('hdc shell "find data/ -name arkui.dump"') do (
    hdc file recv %%i .
)
pause